import {deleted, get, post, put} from "@/api/client";

/**
 * 查询分页列表
 * @param  data
 */
export const getConFilesPage = (data) => {
    return post(`/conFiles/page`, data);
};

/**
 * 修改ConFiles
 * @param  ConFiles
 */
export const updateConFiles = (data) => {
    return post("/conFiles/updateById", data);
};

/**
 * 添加信息
 * @param  ConFiles
 */
export const addConFiles = (data) => {
    return post("/conFiles/save", data);
};
/**
 * 删除
 * @param  id
 */
export const deletedConFiles = (data) => {
    return deleted("/conFiles/delete", data);
};

/**
 * 根据id查询
 * @param  id
 */
export const getConFilesById = (id) => {
    return get(`/conFiles/detail`, {id});
};

/**
 * 查询全部列表
 */
export const getConFilesList = () => {
    return get(`/conFiles/list`);
};
